Skip to content

Fix notifyEvent#27

Closed
pm-michael wants to merge 1 commit intotempusdominus:masterfrom
pm-michael:patch-1
Closed

Fix notifyEvent#27
pm-michael wants to merge 1 commit intotempusdominus:masterfrom
pm-michael:patch-1

Conversation

@pm-michael
Copy link

I noticed the update event was not triggering, and it seems to be due to these lines:

if (e.type === DateTimePicker.Event.CHANGE && (e.date && e.date.isSame(e.oldDate)) || !e.date && !e.oldDate) {
    return;
}

If the date and oldDate properties are not set (eg. for update), then this will always return early and not trigger the event.

@Eonasdan
Copy link
Contributor

think this is fixed with #31. I'm going to be moving everything back to eonasdan/tempus-dominus so if this isn't fixed for you in the v6 (coming soon), please open another ticket

@Eonasdan Eonasdan closed this Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants